🔁 For Loop
The For Loop action allows you to create iterative loops in your Pageflows, executing a set of actions repeatedly based on a loop variable and a condition. This enables controlled repetition with incrementing or decrementing values.
Configuration
- Iteration Variable: Enter the name of the loop counter variable.
- Value: Specify the initial value of the iteration variable.
- Condition: Define the condition that determines whether the loop continues. This includes:
- Name: The variable or field to check.
- Type: The comparison operator (e.g., Equals, Less Than, Greater Than).
- Value: The value to compare against.
- Optional expressions (fx) for dynamic conditions.
- Increment/Decrement: Choose whether the iteration variable should be incremented or decremented after each loop cycle, and specify the amount to change by.
Features
- Supports defining a loop counter with custom variable name and initial value.
- Allows flexible condition setup for loop continuation.
- Supports both incrementing and decrementing loops.
- Allows use of expressions for complex condition evaluation.
- Easily add or remove conditions with intuitive UI.
Use Cases
- Perform repetitive tasks a specific number of times.
- Iterate over numeric ranges or indexes.
- Execute batch operations with controlled loop variables.
- Create countdown or count-up loops for Pageflows.
Notes
- Ensure the iteration variable and condition use compatible data types.
- Carefully define loop conditions to avoid infinite loops.
- Use increment/decrement wisely to control loop progression.
- Combine with other actions inside the loop body for complex logic.
Tip: Use the condition and increment/decrement settings to create versatile loop structures for dynamic Pageflows.